import axi from 'axios';

export default {
  queryBQuestions(p) {
    return axi.get('/bquestion/queryBQuestions', {
      params: p,
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
  addBQuestions(p) {
    return axi.post('/bquestion/add', p, {
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
  updateBQuestions(businessId, p) {
    return axi.put(`/bquestion/update/${businessId}`, p, {
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
  deleteBQuestions(businessId) {
    return axi.delete(`/bquestion/deleteLogical/${businessId}`, {
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },

};
